home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Fiszkowe programy do nauki / jMemorize 1.2.3 / jMemorize-1.2.3-setup.exe / jMemorize-1.2.3.exe / ant / release.xml < prev    next >
Extensible Markup Language  |  2006-09-08  |  6KB  |  98 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  4. <!-- iText, a JAVA - PDF library                                      -->
  5. <!-- $Id: release.xml,v 1.10 2006/09/08 12:31:36 blowagie Exp $         -->
  6. <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  7.  
  8. <project name="iText.release" default="help">
  9.     
  10.     <property file=".ant.properties" />
  11.     
  12.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  13.     <!-- Help                                                             -->
  14.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  15.  
  16.     <target name="help" description="--> shows the help screen">
  17.         <echo>MAKING A NEW RELEASE (release.xml)</echo>
  18.         <echo>archive.src: archiving the source</echo>
  19.         <echo>ant.zip: makes a zip file with the ANT scripts</echo>
  20.         <echo>release.sf: making the release for SourceForge</echo>
  21.         <echo>changelog: parsing a changelog.txt file</echo>
  22.         <echo />
  23.     </target>
  24.  
  25.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  26.     <!-- Parsing the changelog                                            -->
  27.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  28.  
  29.     <target name="changelog" description="--> parsing a changelog">
  30.         <java classname="com.lowagie.tools.CvsLogParser" dir="${basedir}" fork="true">
  31.             <arg value="${itext.home}/changelog.txt" />
  32.             <classpath>
  33.                 <pathelement location="${itext.bin}/iText.jar" />
  34.             </classpath>
  35.         </java>
  36.     </target>
  37.  
  38.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  39.     <!-- Archiving the code                                               -->
  40.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  41.  
  42.     <target name="src.zip" description="--> makes a zipfile with the source code">
  43.         <mkdir dir="${itext.dist}"/>
  44.         <zip zipfile="${itext.dist}/src.zip" basedir="${itext.src}" includes="**/*.java, **/*.ps, **/*.txt, **/*.gif, **/*.afm, **/*.html, **/*.xml, ant/.ant.properties, META-INF/MANIFEST.MF" />
  45.     </target>
  46.     
  47.     <target name="src.tar.gz" description="--> makes a tar.gz-file with the source code">
  48.         <mkdir dir="${itext.dist}"/>
  49.         <tar tarfile="${itext.dist}/src.tar" basedir="${itext.src}" includes="**/*.java, **/*.ps, **/*.txt, **/*.gif, **/*.afm, **/*.html, **/*.xml, ant/.ant.properties, META-INF/MANIFEST.MF" />
  50.         <gzip zipfile="${itext.dist}/src.tar.gz" src="${itext.dist}/src.tar"/>
  51.         <delete file="${itext.dist}/src.tar"/>
  52.     </target>
  53.     
  54.     <target name="archive.src" depends="src.zip, src.tar.gz" description="--> archives the source code" />
  55.  
  56.     <target name="ant.zip" description="--> makes a zipfile with the ANT scripts">
  57.         <mkdir dir="${itext.dist}"/>
  58.         <zip zipfile="${itext.dist}/iTextAnt.zip" basedir="${itext.src}" includes="build.xml, ant/**" />
  59.     </target>
  60.  
  61.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  62.     <!-- Making a release, ready for upload to SourceForge                -->
  63.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  64.     
  65.     <target name="release.sf" description="--> makes a complete iText release ready to publish on SourceForge">
  66.         <mkdir dir="${itext.sf}"/>
  67.         <copy file="${itext.bin}/iText.jar" todir="${itext.dist}" overwrite="yes" />
  68.         <copy file="${itext.bin}/iText.jar" tofile="${itext.dist}/itext-signed.jar" overwrite="yes"/>
  69.         <signjar keystore="${itext.bin}/.keystore" jar="${itext.dist}/itext-signed.jar" alias="itext" storepass="fdptext1" />
  70.         <copy file="${itext.bin}/iText.jar" tofile="${itext.dist}/itext-${releasenumber}.jar" overwrite="yes"/>
  71.         <copy file="${itext.bin}/iText.jar" tofile="${itext.sf}/itext-${releasenumber}.jar" overwrite="yes"/>
  72.         <copy file="${itext.dist}/src.zip" tofile="${itext.sf}/itext-src-${releasenumber}.zip" overwrite="yes"/>
  73.         <copy file="${itext.dist}/src.tar.gz" tofile="${itext.sf}/itext-src-${releasenumber}.tar.gz" overwrite="yes"/>
  74.         <copy file="${itext.dist}/docs.tar.gz" tofile="${itext.sf}/itext-docs-${releasenumber}.tar.gz" overwrite="yes"/>
  75.         <copy file="${itext.dist}/iTextAnt.zip" tofile="${itext.sf}/iTextAnt-${releasenumber}.zip" overwrite="yes"/>
  76.     </target>
  77.     
  78.     <target name="earlyaccess.sf" description="--> makes a complete iText release ready to publish on SourceForge">
  79.         <mkdir dir="${itext.sf}"/>
  80.         <copy file="${itext.bin}/iText.jar" todir="${itext.dist}" overwrite="yes" />
  81.         <copy file="${itext.bin}/iText.jar" tofile="${itext.dist}/itext-signed.jar" overwrite="yes"/>
  82.         <signjar keystore="${itext.bin}/.keystore" jar="${itext.dist}/itext-signed.jar" alias="itext" storepass="fdptext1" />
  83.         <copy file="${itext.bin}/iText.jar" tofile="${itext.dist}/itext-${earlyaccesslowagie}.jar" overwrite="yes"/>
  84.         <copy file="${itext.bin}/iText.jar" tofile="${itext.sf}/itext-${earlyaccesslowagie}.jar" overwrite="yes"/>
  85.         <copy file="${itext.dist}/src.zip" tofile="${itext.sf}/itext-src-${earlyaccesslowagie}.zip" overwrite="yes"/>
  86.         <copy file="${itext.dist}/src.tar.gz" tofile="${itext.sf}/itext-src-${earlyaccesslowagie}.tar.gz" overwrite="yes"/>
  87.         <copy file="${itext.dist}/docs.tar.gz" tofile="${itext.sf}/itext-docs-${earlyaccesslowagie}.tar.gz" overwrite="yes"/>
  88.         <copy file="${itext.dist}/iTextAnt.zip" tofile="${itext.sf}/itext-ant-${earlyaccesslowagie}.zip" overwrite="yes"/>
  89.     </target>
  90.  
  91.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  92.     <!-- Making the jars with the Asian Fontfiles                         -->
  93.     <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->    
  94.     <target name="asian.jar" description="--> makes iTextAsian.jar and iTextAsianCmaps.jar">
  95.         <jar jarfile="${itext.bin}/iTextAsian.jar" basedir="${itext.src}" includes="**/*.cmap,**/*.properties" />
  96.         <jar jarfile="${itext.bin}/iTextAsianCmaps.jar" basedir="${itext.src}" excludes="**/*.java, **/*.ps,**/*.txt,**/*.gif,**/*.afm,**/*.html,**/*.cmap,**/*.properties" />
  97.     </target>
  98. </project>